//package com.keyinong.parkin.loginmodule;
//
//import java.lang.reflect.Array;
//
//import com.example.parkin.R;
//
//import android.app.Activity;
//import android.content.Context;
//import android.location.Location;
//import android.location.LocationListener;
//import android.location.LocationManager;
//import android.os.Bundle;
//import android.widget.EditText;
//
//public class Ceshi extends Activity {
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        setContentView(R.layout.activity_main);
//        
////        +(NSDictionary *)decodeJWT:(NSString *)jwt
////        {
//            NSArray *segments = [jwt componentsSeparatedByString:@"."];
//            NSString *base64String = [segments objectAtIndex: 1];
//            NSLog(@"%@", base64String);
//            int requiredLength = (int)(4 * ceil((float)[base64String length] / 4.0));
//            int nbrPaddings = requiredLength - (int)[base64String length];
//            
//            if (nbrPaddings > 0) {
//                NSString *padding =
//                [[NSString string] stringByPaddingToLength:nbrPaddings
//                                                withString:@"=" startingAtIndex:0];
//                base64String = [base64String stringByAppendingString:padding];
//            }
//            
//            base64String = [base64String stringByReplacingOccurrencesOfString:@"-" withString:@"+"];
//            base64String = [base64String stringByReplacingOccurrencesOfString:@"_" withString:@"/"];
//            
//            NSData *decodedData =
//            [[NSData alloc] initWithBase64EncodedString:base64String options:0];
//            NSString *decodedString =
//            [[NSString alloc] initWithData:decodedData encoding:NSUTF8StringEncoding];
//            NSLog(@"%@", decodedString);
//            
//            NSDictionary *jsonDictionary =
//            [NSJSONSerialization JSONObjectWithData:[decodedString
//                                                     dataUsingEncoding:NSUTF8StringEncoding]
//                                            options:0 error:nil];
//            NSLog(@"%@", jsonDictionary);
//            
//            return jsonDictionary;
////        }
//    }
//    private void decodeJWT(String jwt){
//    	Array segments=[jwt ]
//    }
// 
//}
